package com.link.base.base.encode.service;

import com.link.base.base.encode.model.Encode;
import com.link.core.basic.service.BasicServiceException;
/**
 * Copyright  hande Company. All Rights Reserved.
 *
 * @author  unknwon
 * @date:   2018/11/12 9:44
 * @version 1.0
 */

public interface EncodeService {

    /**
     * 加密编码后插入数据库
     * @param attr1
     * @param attr2
     * @param attr3
     * @param attr4
     * @param attr5
     * @throws BasicServiceException
     */
    public void encodeInsert(String attr1, String attr2, String attr3, String attr4, String attr5) throws BasicServiceException;

    /**
     * 用密钥查询字符串
     *
     * @param code
     * @return
     * @throws BasicServiceException
     */
    public Encode queryStringByCode(String code) throws BasicServiceException;

    /**
     * 删除编码
     *
     * @param code
     * @return
     * @throws BasicServiceException
     */
    public void delete(String code) throws BasicServiceException;

}
